package org.nokatag.tagjava;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;

public class FormInfoShow extends NokaTag{

	private static final long serialVersionUID = -1909230437769222251L;
	public int doStartTag() throws JspException {
		JspWriter jspOut = pageContext.getOut();
		FormHtml fh = getTagFormHtml(this);
		if(null!=fh){
			String bodyId = fh.getId();
			StringBuilder bodystr = new StringBuilder();
			bodystr.append("<div id=\""+bodyId+"_msg\" style=\"width:0px;height:0px\"></div>");
			try {
				jspOut.write(bodystr.toString());
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		return EVAL_BODY_INCLUDE;
	}
}
